#include "List.h"

namespace ouyang
{
	void Test_mylist1()
	{
		list<int> lt;
		lt.push_back(1);
		lt.push_back(2);
		lt.push_back(3);
		lt.push_back(4);
		lt.push_front(0);
		lt.push_front(-1);
		lt.push_front(-2);
		Print_Container(lt);

		lt.pop_front();
		lt.pop_front();
		lt.pop_back();
		lt.pop_back();
		Print_Container(lt);

	}

	void Test_mylist2()
	{
		list<int> lt;
		lt.push_back(1);
		lt.push_back(2);
		lt.push_back(3);
		lt.push_back(4);
		Print_Container(lt);

		list<int> lt1(lt);
		Print_Container(lt1);
		lt1.Insert(lt1.begin(), 0);

		list<int> lt2 = lt1;
		Print_Container(lt2);

		lt2 = lt;
		Print_Container(lt2);

	}

	void Test_mylist3()
	{
		list<int> lt = { 1, 2, 3, 4 };
		//cout << typeid(lt).name() << endl;
		Print_Container(lt);
	}

}

int main()
{
	//ouyang::Test_mylist1();
	//ouyang::Test_mylist2();
	ouyang::Test_mylist3();
	return 0;
}